package com.up.management.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.up.common.annotation.Excel;
import com.up.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 评论管理对象 ich_event_comment
 * Entity：用于持久化层（Mapper）
 *
 * @author cloud
 * @date 2025-10-13
 */
@Alias("EventComment")
public class EventComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    @Excel(name = "评论ID")
    private Long commentId;

    /** 所属活动ID */
    @Excel(name = "所属活动ID")
    private Long eventId;

    /** 评论用户ID */
    @Excel(name = "评论用户ID")
    private Long userId;

    /** 父评论ID */
    @Excel(name = "父评论ID")
    private Long parentId;

    /** 顶级评论ID */
    @Excel(name = "顶级评论ID")
    private Long topId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论状态 */
    @Excel(name = "评论状态")
    private Long status;

    /** 父评论 */
    @Excel(name = "父评论")
    private String parentContent;

    /** 活动名称（查询辅助字段） */
    private String eventName;

    /** 用户名（查询辅助字段） */
    private String username;

    public Long getCommentId() { return commentId; }
    public void setCommentId(Long commentId) { this.commentId = commentId; }

    public Long getEventId() { return eventId; }
    public void setEventId(Long eventId) { this.eventId = eventId; }

    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public Long getParentId() { return parentId; }
    public void setParentId(Long parentId) { this.parentId = parentId; }

    public Long getTopId() { return topId; }
    public void setTopId(Long topId) { this.topId = topId; }

    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }

    public Long getStatus() { return status; }
    public void setStatus(Long status) { this.status = status; }

    public String getParentContent() { return parentContent; }
    public void setParentContent(String parentContent) { this.parentContent = parentContent; }

    public String getEventName() { return eventName; }
    public void setEventName(String eventName) { this.eventName = eventName; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("eventId", getEventId())
            .append("userId", getUserId())
            .append("parentId", getParentId())
            .append("topId", getTopId())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("parentContent", getParentContent())
            .append("eventName", getEventName())
            .append("username", getUsername())
            .toString();
    }
}